/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controllers;

/**
 *
 * @author ozgencetinkaya
 */

import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import model.UserBean;

@Controller
public class IndexController {
    
    @RequestMapping("/index.htm")
    public String redirect(HttpServletRequest request, HttpServletResponse response) throws IOException{
        /*HttpSession session = request.getSession(true);
        UserBean userBean = (UserBean)session.getAttribute("currentSessionUser");
        
        if(userBean.isValid()){
            
            return "index";
        }
        response.sendRedirect("signin.htm");*/
        return "index";
        
        
    }
}
